package com.gzist.blog_system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzist.blog_system.domain.User;
import com.gzist.blog_system.domain.vo.LoginParams;
import com.gzist.blog_system.domain.vo.UserInfoParams;

import java.util.Map;

/**
 *
 */
public interface UserService extends IService<User> {

    String login(LoginParams loginParams);

    UserInfoParams userInfo();

    boolean updateUserInfo(UserInfoParams userInfoParams);

    boolean updateAvatar(String userPic);

    String  updatePwd(Map<String, String> params, String token);

    String userKey(String token);

    void register(String username, String password);
}
